package com.by.lsd.unit;

import com.baomidou.mybatisplus.generator.FastAutoGenerator;

public class Generator {
    public static void main(String[] args) {
        FastAutoGenerator.create("jdbc:mysql://localhost:3306/fzls?serverTimezone=Asia/Shanghai", "root", "")
                .globalConfig(builder -> {
                    builder.author("cxk") // 设置作者
                            .outputDir("E:/bysj/demo/src/main/java"); // 指定输出目录
                })
                .packageConfig(builder -> {
                    builder.parent("com.by.lsd");// 设置父包名
                })
                .strategyConfig(builder -> {
                    //builder.addInclude("customer");// 设置需要生成的表名
                    builder.addInclude("user");
                })
                .execute();
    }

}
